package org.jeecg.modules.bigdatashow.controller;

import org.jeecg.modules.bigdatashow.service.MoneyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

@RestController
@RequestMapping(value = "/Y",produces = "application/json; charset=utf-8")
public class MoneyController {

    @Autowired
    private MoneyService moneyService;
    @GetMapping("/ru")
    public List shouru(){
        List list=moneyService.ruAll(1);
        return list;
    }
    @GetMapping("/chu")
    public List zhichu(){
        List list=moneyService.ruAll(2);
        return list;
    }


}
